
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
	<title>Webview Example</title>
	<script type="text/javascript">
// H5 plus事件处理
function plusReady(){
	// 获取所有Webview窗口
	var wvs=plus.webview.all();
	for(var i=0;i<wvs.length;i++){
		console.log('webview'+i+': '+wvs[i].getURL());
	}
}
if(window.plus){
	plusReady();
    console.log('1')
}else{
    console.log('2')
	document.addEventListener('plusready', plusReady, false);
}
	</script>
	</head>
	<body>
	获取所有Webview窗口
	</body>
</html>
	